For functions in the same scope as the higher-order function, you can
use the same ::
-prefix syntax.
In this case, both lessThanZero()
and hasMatch()
are member functions
of Thingy
, so matchify()
can pass ::lessThanZero
to hasMatch()
.
You can learn more about this in:
Tags: